package com.example.controller;


import com.example.common.result.Result;
import com.example.entity.mysql.BuyingRequisition;
import com.example.mapper.PurtbMapper;
import com.example.service.PurtaService;
import com.example.service.PurtbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-19
 */
@RestController
@RequestMapping("/api/purta")
@Api(tags = "请购维护信息")
public class PurtaController {
    @Resource
    private PurtaService purtaService;
    @Resource
    private PurtbService purtbService;
    @Resource
    private PurtbMapper purtbMapper;

    @GetMapping("/select")
    @ApiOperation("请购维护信息查询")
    public Result select(){
        List<BuyingRequisition> buyingRequisitionList = purtbMapper.selectAllBuyingRequisition();
        return Result.success(buyingRequisitionList);
    }



}
